package com.yupi.springbootinit.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 公司表(Dept)表实体类
 *
 * @author makejava
 * @since 2024-03-12 15:15:23
 */
@Data
@TableName(value = "dept")
public class Dept {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("deptName")
    private String deptName;

    @TableField("deptLocation")
    private String deptLocation;

    @TableField("deptSignGpsLocation")
    private String deptSignGpsLocation;

    @TableField("deptDescribe")
    private String deptDescribe;

    @TableField("signInTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date signInTime;

    @TableField("signOutTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date signOutTime;

    @TableField("localRange")
    private Integer localRange;
    /**
     * 签到时间时分秒
     */
    @TableField(exist = false)
    private String signInTimeSFM;
    /**
     * 签退时间时分秒
     */
    @TableField(exist = false)
    private String signOutTimeSFM;

    @TableField(exist = false)
    private String nowTimeSFM;
}

